package com.next

//资产信息表
class PropertyInformation
{
    Certificate certificate
    //权利证书
    Account account
    //企业
    CurrencyType currencyType
    //币种
    String depreciationMethod
    //折旧方式
    PropertyValuationProvider valuationProvider
    //评估机构
    Date valuationDate
    //评估日期
    String name
    //资产名称
    String status
    //状态
    PropertyType type
    //资产类型
    Double totalPrice = 0
    //资产净值
    Double appliedTotalPrice = 0
    //入账价值
    String memo
    //备注

    Date createdDate = new Date()
    User createdBy
    Date modifiedDate = new Date()
    User modifyBy

    static constraints = {
        certificate nullable: true, blank: true
        currencyType nullable: true, blank: true
        depreciationMethod nullable: true, blank: true, maxSize: 64
        valuationProvider nullable: true, blank: true
        valuationDate nullable: true, blank: true
        name maxSize: 32
        status maxSize: 32
        memo nullable: true, blank: true, maxSize: 128
        createdDate nullable: true, blank: true
        createdBy nullable: true, blank: true
        modifiedDate nullable: true, blank: true
        modifyBy nullable: true, blank: true

    }
}
